package com.twu.biblioteca;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworker
 * Date: 8/23/13
 * Time: 10:51 AM
 * To change this template use File | Settings | File Templates.
 */
public class User {

    private String username;
    private String password;
    private String name;
    private String phoneNumber;
    private String email;

    public User(String username, String password, String name, String phoneNumber, String email) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.phoneNumber = phoneNumber;
        this.email = email;
    }

    public String showCredentials()
    {
        return String.format("%s\n%s\n%s\n%s\n%s\n", username, password, name, phoneNumber, email);
    }

    public User(String username, String password)
    {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
}
